package com.jeesite.modules.home.web;

import com.jeesite.common.config.Global;
import com.jeesite.common.entity.Page;
import com.jeesite.common.lang.DateUtils;
import com.jeesite.common.lang.StringUtils;
import com.jeesite.common.web.BaseController;
import com.jeesite.common.web.http.ServletUtils;
import com.jeesite.modules.annotation.RepeatSubmit;
import com.jeesite.modules.backlog.entity.DcSupBacklog;
import com.jeesite.modules.backlog.service.DcSupBacklogService;
import com.jeesite.modules.home.entity.DcSupTaskActionExplain;
import com.jeesite.modules.home.entity.ImageDto;
import com.jeesite.modules.home.service.DcProvinceMajorService;
import com.jeesite.modules.home.service.DcSupTaskActionExplainService;
import com.jeesite.modules.sys.entity.Role;
import com.jeesite.modules.sys.utils.UserUtils;
import com.jeesite.modules.task.action.entity.DcSupTaskAction;
import com.jeesite.modules.task.action.service.DcSupTaskActionService;
import com.jeesite.modules.task.arrange.entity.DcSupTaskInfoArrange;
import com.jeesite.modules.task.arrange.service.DcSupTaskInfoArrangeService;
import com.jeesite.modules.task.deploy.dao.DcSupTaskInfoDao;
import com.jeesite.modules.task.deploy.entity.DcSupTaskInfo;
import com.jeesite.modules.task.deploy.entity.DcSupTaskInfoAdd;
import com.jeesite.modules.task.deploy.service.DcSupTaskInfoService;
import com.jeesite.modules.task.dict.entity.DcSupTaskInfoDict;
import com.jeesite.modules.task.dict.service.DcSupTaskInfoDictService;
import com.jeesite.modules.task.feedback.entity.DcSupTaskFeedback;
import com.jeesite.modules.task.feedback.service.DcSupTaskFeedbackService;
import com.jeesite.modules.task.status.entity.DcSupTaskStatus;
import com.jeesite.modules.task.status.service.DcSupTaskStatusService;
import com.jeesite.modules.utils.DateTimeUtil;
import com.jeesite.modules.utils.OfficeUtil;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import java.util.ArrayList;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @description: 首页管理
 * @author: ciye
 * @date: 2022/3/3 16:04
 */
@Controller
@RequestMapping(value = "${adminPath}/home/homePage")
public class DcLeaderPageController extends BaseController {

    @Autowired
    private DcSupTaskInfoDictService dcSupTaskInfoDictService;
    @Autowired
    private DcSupTaskInfoService dcSupTaskInfoService;
    @Autowired
    private DcSupTaskActionExplainService dcSupTaskActionExplainService;
    @Autowired
    private DcSupTaskActionService dcSupTaskActionService;
    @Autowired
    private DcSupTaskInfoArrangeService dcSupTaskInfoArrangeService;
    @Autowired
    private DcSupTaskStatusService dcSupTaskStatusService;
    @Autowired
    private DcSupTaskInfoDao dcSupTaskInfoDao;
    @Autowired
    private DcProvinceMajorService dcProvinceMajorService;
    @Autowired
    private DcSupBacklogService dcSupBacklogService;
    @Autowired
    private DcSupTaskFeedbackService dcSupTaskFeedbackService;
    /**
     * 跳转到市领导工作台
     */
    @RequestMapping(value = {"leaderHome", ""})
    public String leaderHomePage(Model model) {
        DcSupTaskAction dcSupTaskAction = new DcSupTaskAction();
        model.addAttribute("dcSupTaskAction", dcSupTaskAction);
        DcSupTaskAction dcSupTaskAction2 = new DcSupTaskAction();
        model.addAttribute("dcSupTaskAction2", dcSupTaskAction2);
        getTaskType2(model);
        return "modules/home/leaderHome";
    }

    /**
     * 重点工作任务清单
     */
    @RequestMapping(value = "queryKeyPointList")
    @ResponseBody
    public Page<DcSupTaskAction> queryKeyPointList(DcSupTaskAction dcSupTaskAction, HttpServletRequest request, HttpServletResponse response) {
        dcSupTaskAction.setPage(new Page<>(request, response));
         String taskTypeCode = dcSupTaskAction.getTaskTypeCode();
         String type ="";
        String taskType ="";
         if(StringUtils.isNotBlank(taskTypeCode)){
             String[] split = taskTypeCode.split(",");
             for(String s :split){
                 type =type+"\'"+s+"\',";
             }
             taskType= type.substring(0,type.length()-1);
         }
         if(StringUtils.isBlank(dcSupTaskAction.getTaskLeader())){
             dcSupTaskAction.setTaskLeader( UserUtils.getUser().getUserCode());
         }
        dcSupTaskAction.setTaskTypeCode(taskType);
        Page<DcSupTaskAction> page = dcSupTaskInfoService.queryKeyPointList(dcSupTaskAction);
        return page;
    }


    /**
     * 专题模块
     */
    @RequestMapping(value = "querySpecialList")
    @ResponseBody
    public Page<DcSupTaskAction> querySpecialList(DcSupTaskAction dcSupTaskAction, HttpServletRequest request, HttpServletResponse response) {
        dcSupTaskAction.setPage(new Page<>(request, response));
        String taskTypeCode = dcSupTaskAction.getTaskTypeCode();
        String type ="";
        String taskType ="";
        if(StringUtils.isNotBlank(taskTypeCode)){
            String[] split = taskTypeCode.split(",");
            for(String s :split){
                type =type+"\'"+s+"\',";
            }
            taskType= type.substring(0,type.length()-1);
        }
        if(StringUtils.isBlank(dcSupTaskAction.getTaskLeader())){
            dcSupTaskAction.setTaskLeader( UserUtils.getUser().getUserCode());
        }
        dcSupTaskAction.setTaskTypeCode(taskType);
        Page<DcSupTaskAction> page = dcSupTaskInfoService.querySpecialList(dcSupTaskAction);
        return page;
    }


    /**
     * 统计
     */
    @RequestMapping(value = "leaderStatistics")
    @ResponseBody
    public Object leaderStatistics(DcSupTaskAction dcSupTaskAction, HttpServletRequest request, HttpServletResponse response) {
        dcSupTaskAction.setPage(new Page<>(request, response));
        Map map = dcSupTaskInfoService.leaderStatistics(dcSupTaskAction);
        return map;
    }
    public void getTaskType2(Model model){
        DcSupTaskInfoDict dcSupTaskInfoDict = new DcSupTaskInfoDict();
        dcSupTaskInfoDict.setDictStatus("0");
        dcSupTaskInfoDict.setOrderBy("dict_sort acs");
        List<DcSupTaskInfoDict> dicts = dcSupTaskInfoDictService.findList(dcSupTaskInfoDict);
        model.addAttribute("keyPointList",dicts);
    }

    /**
     * 获取重点工作任务类型，专题模块任务类型
     * @param model
     */
    static String typeCode_=null;
    public void getTaskType(Model model) {
        //重点
        List<DcSupTaskInfoDict> keyPoint = new ArrayList<>();
        //专项
        List<DcSupTaskInfoDict> special = new ArrayList<>();
        String keyStr ="( '国务院大督查' , '省委省政府督查室交办','市领导批示交办','市委市政府专题会议','市政府工作报告重点工作','人民网网友留言')";
        DcSupTaskInfoDict dcSupTaskInfoDict = new DcSupTaskInfoDict();
        dcSupTaskInfoDict.setDictStatus("0");
        dcSupTaskInfoDict.setOrderBy("dict_sort acs");
        List<DcSupTaskInfoDict> dicts = dcSupTaskInfoDictService.findList(dcSupTaskInfoDict);
        String chartKeyWork="";
        for(DcSupTaskInfoDict dict :dicts){
            String dictLabel = dict.getDictLabel();
           String dictType = dict.getDictType();
            if("1".equals(dictType)){
               if(StringUtils.equals("市领导批示交办",dictLabel)){
                   dict.setDictLabel("批示交办");
                   keyPoint.add(dict);
               }else if("市委市政府专题会议".equals(dictLabel)){
                   dict.setDictLabel("会议议定事项");
                   keyPoint.add(dict);
               }else{
                   if(StringUtils.isNotBlank(chartKeyWork)){
                       chartKeyWork = chartKeyWork+","+dict.getDictValue();
                   }else{
                       chartKeyWork = dict.getDictValue();
                   }
                    continue;
               }
           }else if("2".equals(dictType)){
               special.add(dict);
           }
        }
        DcSupTaskInfoDict chartKeyWorkDict = new DcSupTaskInfoDict();
        chartKeyWorkDict.setDictLabel("分管重点工作");
        chartKeyWorkDict.setDictValue(chartKeyWork);
        keyPoint.add(chartKeyWorkDict);
        keyPoint.addAll(special);
        model.addAttribute("keyPointList",keyPoint);
       // model.addAttribute("specialList",special);
    }


    /**
     * 跳转到市领导子页面
     */
    @RequestMapping(value = "leaderChird")
    public String leaderChird(   DcSupTaskAction dcSupTaskAction,Model model) {
        model.addAttribute("dcSupTaskAction", dcSupTaskAction);
        return "modules/home/leaderHomeChird";
    }
    @RequestMapping(value = "leaderChirdDown")
    public String leaderChirdDown(   DcSupTaskAction dcSupTaskAction,Model model) {
        model.addAttribute("dcSupTaskAction", dcSupTaskAction);
        return "modules/home/leaderHomeChirdDown";
    }


    /**
     * 子页面通过标题模糊搜索
     */
    @RequestMapping(value = "queryChildList")
    @ResponseBody
    public Page<DcSupTaskAction> queryChildList(DcSupTaskAction dcSupTaskAction, HttpServletRequest request, HttpServletResponse response) {
        dcSupTaskAction.setPage(new Page<>(request, response));
        Page<DcSupTaskAction> page = dcSupTaskInfoService.queryChildList(dcSupTaskAction);
        return page;
    }

    /**
     * 任务详细信息
     */
    @RequestMapping(value = "detailForm")
    public String detailForm(DcSupTaskAction dcSupTaskAction, Model model) {
        DcSupTaskInfo dcSupTaskInfo1 = dcSupTaskInfoService.get(dcSupTaskAction.getTaskId());
        Integer currentYear = Integer.parseInt(DateUtils.getYear());
        model.addAttribute("yearList", OfficeUtil.getYearList(currentYear));
        model.addAttribute("currentYear", currentYear);
        model.addAttribute("dcSupTaskInfo", dcSupTaskInfo1);
        model.addAttribute("dcSupTaskAction", dcSupTaskAction);
        return "modules/home/leaderTaskInfo";
    }

    /**
     * 查看编辑表单
     */
    @RequestMapping(value = "form")
    public String form(DcSupTaskActionExplain dcSupTaskActionExplain, Model model) {
        DcSupTaskInfo info = new DcSupTaskInfo();
        info.setId(dcSupTaskActionExplain.getActionId());
        info.setTaskLeader(dcSupTaskActionExplain.getExplainCode());
        List<DcSupTaskInfo> list = dcSupTaskInfoDao.queryWorkList(info);
        if (list.size()>0){
            dcSupTaskActionExplain.setExplainContent(list.get(0).getExplainContent());
        }else{
            dcSupTaskActionExplain.setExplainContent("");
        }
        model.addAttribute("dcSupTaskActionExplain", dcSupTaskActionExplain);
        return "/modules/task/action/dcSupTaskActionExplainForm";
    }

    /**
     * 领导批示页面
     */
    @RequestMapping(value = "formExplain")
    public String formExplain(DcSupTaskActionExplain dcSupTaskActionExplain, Model model) {
        model.addAttribute("dcSupTaskActionExplain", dcSupTaskActionExplain);
        return "/modules/task/action/dcSupTaskActionExplainFormLeader";
    }

    /**
     * 领导批示数据
     */
    @RequestMapping(value = "explainData")
    @ResponseBody
    public Object explainData(DcSupTaskActionExplain dcSupTaskActionExplain) {
        List<DcSupTaskActionExplain> list = dcSupTaskActionExplainService.findList(dcSupTaskActionExplain);
        return list;
    }


    /**
     * 保存数据
     */
    @PostMapping(value = "save")
    @ResponseBody
    @RepeatSubmit
    public String save(@Validated DcSupTaskActionExplain dcSupTaskActionExplain) {
        dcSupTaskActionExplainService.save(dcSupTaskActionExplain);
        return renderResult(Global.TRUE, text("领导批示成功！"));
    }

    /**
     * 查询列表数据
     */
    @RequestMapping(value = "listData")
    @ResponseBody
    public Page<DcSupTaskAction> listData(DcSupTaskAction dcSupTaskAction, HttpServletRequest request, HttpServletResponse response) {
        dcSupTaskAction.setPage(new Page<>(request, response));
        List<String> times = DateTimeUtil.timeString(dcSupTaskAction.getTimeParam());
        if(times != null) {
            dcSupTaskAction.setStartTime(times.get(0));
            dcSupTaskAction.setEndTime(times.get(1));
        }
        Page<DcSupTaskAction> page = dcSupTaskActionService.findPage(dcSupTaskAction);
        //查询反馈表中的feedback_status有没有5和9的数据,有的话就说明反馈已审核,修改圆环图进展情况
        Integer count = dcSupTaskActionService.getFiveAndNightCount(dcSupTaskAction.getId());
        if(count>0&&page.getList().size()!=0){
            page.getList().get(0).setRemarks2(page.getList().get(0).getTaskStatus());
            page.getList().get(0).setTaskStatus("4");
        }else if(page.getList().size()!=0){
            page.getList().get(0).setRemarks2(page.getList().get(0).getTaskStatus());
        }
        return page;
    }

    /**
     * 工作任务清单
     */
    @RequestMapping(value = "queryWorkList")
    @ResponseBody
    public Page<DcSupTaskInfo> queryWorkList(DcSupTaskInfo dcSupTaskInfo, HttpServletRequest request, HttpServletResponse response) {
        dcSupTaskInfo.setPage(new Page<>(request, response));
        String taskTypeCode = dcSupTaskInfo.getTaskTypeCode();
        String type ="";
        String taskType ="";
        if(StringUtils.isNotBlank(taskTypeCode)){
            String[] split = taskTypeCode.split(",");
            for(String s :split){
                type =type+"\'"+s+"\',";
            }
            taskType= type.substring(0,type.length()-1);
        }
        if(StringUtils.isBlank(dcSupTaskInfo.getTaskLeader())){
            dcSupTaskInfo.setTaskLeader( UserUtils.getUser().getUserCode());
        }
        dcSupTaskInfo.setTaskTypeCode(taskType);
        Page<DcSupTaskInfo> page = dcSupTaskInfoService.queryWorkList(dcSupTaskInfo);
        if(dcSupTaskInfo.getPageNo()>1&&page.getList().size()==0){
            dcSupTaskInfo.setPageNo(1);
            page = dcSupTaskInfoService.queryWorkList(dcSupTaskInfo);
        }
        return page;
    }


    @RequestMapping(value = "detailTask")
    public String detailTask(DcSupTaskInfo dcSupTaskInfo, Model model) {
        //批示需要的参数
        String taskLeader = dcSupTaskInfo.getTaskLeader();
        String explainContent = dcSupTaskInfo.getExplainContent();
        model.addAttribute("taskLeader", taskLeader);
        model.addAttribute("explainContent", explainContent);

        if(StringUtils.isNotBlank(dcSupTaskInfo.getId())){
            dcSupTaskInfo =dcSupTaskInfoService.get(dcSupTaskInfo);
        }
        DcSupTaskAction dcSupTaskAction = new DcSupTaskAction();
        dcSupTaskAction.setTaskId(dcSupTaskInfo.getId());
        dcSupTaskAction.setTaskStatus("2");
        List<DcSupTaskAction> listAction = dcSupTaskActionService.getAction(dcSupTaskAction);
        DcSupTaskInfoArrange dcSupTaskInfoArrange = new DcSupTaskInfoArrange();
        dcSupTaskInfoArrange.setTaskId(dcSupTaskInfo.getId());
        dcSupTaskInfoArrange.setArrangeStatus("2");
        List<DcSupTaskInfoArrange> list = dcSupTaskInfoArrangeService.findList(dcSupTaskInfoArrange);
        dcSupTaskInfoArrange.setArrangeStatus("1");
        List<DcSupTaskInfoArrange> list2 = dcSupTaskInfoArrangeService.findList(dcSupTaskInfoArrange);
        model.addAttribute("processStatus", "");
        //2已发布3任务部署审核通过5秘书长审核通过7已确认
        Integer status = 1;
        if(StringUtils.equals(dcSupTaskInfo.getTaskStatus(),"2")||StringUtils.equals(dcSupTaskInfo.getTaskStatus(),"3")||StringUtils.equals(dcSupTaskInfo.getTaskStatus(),"5")||StringUtils.equals(dcSupTaskInfo.getTaskStatus(),"7")){
//            model.addAttribute("processStatus", 1);
            status=1;
        }
        //已接收
        if(listAction!=null && listAction.size()>0){
//            model.addAttribute("processStatus", 2);
            status=2;
        }
        if(list2!=null && list2.size()>0){
//            model.addAttribute("processStatus", 3);
            status=3;
        }
        if(list != null && list.size()>0){
            model.addAttribute("dcSupTaskInfoArrange", 	list.get(0));
//            model.addAttribute("processStatus", 4);
            status=4;
        }else{
            model.addAttribute("dcSupTaskInfoArrange", 	new DcSupTaskInfoArrange());
        }
        model.addAttribute("processStatus", status);
        model.addAttribute("dcSupTaskInfo", dcSupTaskInfo);
        return "modules/home//dcSupTaskInfoDetailForm";
    }

    @RequestMapping(value = "getImageList")
    public String getImageList(DcSupTaskInfo dcSupTaskInfo, Model model) {
        model.addAttribute("imageData", dcSupTaskInfo);
        return "modules/home/imageList";
    }

    @RequestMapping(value = "getImageListData")
    @ResponseBody
    public Page<ImageDto> getImageListData(ImageDto imageDto, HttpServletRequest request, HttpServletResponse response){
        imageDto.setPage(new Page<>(request, response));
        Page<ImageDto> page = dcSupTaskActionService.getImageListData(imageDto);
        return page;

    }

    /**
     *
     * @param dcSupTaskAction
     * @return
     */
    @RequestMapping(value = "taskDetailInfoApp")
    @ResponseBody
    public String taskDetailInfoApp(DcSupTaskAction dcSupTaskAction) {
        List<Role> roleList = UserUtils.getUser().getRoleList();

        DcSupTaskInfo dcSupTaskInfo1 = dcSupTaskInfoService.get(dcSupTaskAction.getTaskId());
        Map<String, Object> map = new HashMap<>();
        dcSupTaskAction.setPage(new Page<>());
        Page<DcSupTaskAction> page = dcSupTaskActionService.findPage(dcSupTaskAction);
        List<Map<String,String>> list = new ArrayList<>();
        if(page.getList().size()>0&&roleList.size()>1){
            for (int i = 0; i < page.getList().size(); i++) {
                Map mapSelect = new HashMap();
                mapSelect.put("value",page.getList().get(i).getId());
                mapSelect.put("name",page.getList().get(i).getLeaderOrgName());
                list.add(mapSelect);
            }
            map.put("info",dcSupTaskInfo1);
            map.put("action",list);
        }else{
            map.put("action",new ArrayList<>());
            map.put("info",null);
        }
        return renderResult(Global.TRUE, text("成功！"),map);
    }

    /**
     * 主要经济指标全省排名
     */
    @RequestMapping(value = {"leaderHomeProvinceIndex", ""})
    public String leaderHomeProvinceIndex(Model model) {
        model.addAttribute("date",dcProvinceMajorService.getDate());
        return "modules/home/leaderHomeProvinceIndex";
    }

    @RequestMapping(value = "getRedBlue")
    @ResponseBody
    public Object getRedBlue(DcSupTaskAction dcSupTaskAction) {
       // Map map = dcSupTaskInfoService.getRedBlue(dcSupTaskAction); 废弃2023/2/23截止
        Map map = dcSupTaskInfoService.getLeaderStatics(dcSupTaskAction);
        return map;
    }
    /**
     * 子页面通过标题模糊搜索
     */
    @RequestMapping(value = "queryChildList2")
    @ResponseBody
    public Page<DcSupTaskAction> queryChildList2(DcSupTaskAction dcSupTaskAction, HttpServletRequest request, HttpServletResponse response) {
        dcSupTaskAction.setPage(new Page<>(request, response));
        //Page<DcSupTaskAction> page = dcSupTaskInfoService.queryChildList2(dcSupTaskAction);废弃2023/2/23截止
        Page<DcSupTaskAction> page = dcSupTaskInfoService.queryChildList(dcSupTaskAction);
        return page;
    }

    @RequestMapping(value = "queryStatus")
    @ResponseBody
    public Map<String,Object> queryStatus(DcSupTaskAction dcSupTaskAction) {
        List<DcSupTaskAction> page = dcSupTaskActionService.findList(dcSupTaskAction);
        //查询反馈表中的feedback_status有没有5和9的数据,有的话就说明反馈已审核,修改圆环图进展情况
        Integer count = dcSupTaskActionService.getFiveAndNightCount(dcSupTaskAction.getId());
        if(count>0&&page.size()!=0){
            page.get(0).setRemarks2(page.get(0).getTaskStatus());
            page.get(0).setTaskStatus("4");
        }else if(page.size()!=0){
            page.get(0).setRemarks2(page.get(0).getTaskStatus());
        }
        DcSupTaskStatus dcSupTaskStatus = new DcSupTaskStatus();
        dcSupTaskStatus.setTargetId(dcSupTaskAction.getId());
        dcSupTaskStatus.setPage(new Page<>());
        Page<DcSupTaskStatus> page2 = dcSupTaskStatusService.findPage(dcSupTaskStatus);
        page2.getList().forEach(
                    p-> {p.setRemarks4(page.get(0).getLeaderOrgName());}
            );
        Map map = new HashMap();
        if(page.size()!=0) {
            map.put("taskStatus", page.get(0).getTaskStatus());
        }
        map.put("status",page2);
        return map;
    }

    /**
     *
     *  app查看具体任务其它接口
     * @return
     */
    @ApiOperation("app查看具体任务其它接口")
    @RequestMapping(value = "taskInfoOtherApp")
    @ResponseBody
    public String taskDetailInfoAppOther(DcSupTaskAction dcSupTaskAction) {
        DcSupTaskInfo dcSupTaskInfo1 = dcSupTaskInfoService.get(dcSupTaskAction.getTaskId());
        dcSupTaskInfo1.setFeedbackWay(OfficeUtil.getTaskRequire(dcSupTaskInfo1.getFeedbackWay(),dcSupTaskInfo1.getFeedbackRate()));
        Map<String, Object> map = new HashMap<>();
        map.put("info",dcSupTaskInfo1);
        return renderResult(Global.TRUE, text("成功！"),map);
    }

    /**
     *
     *  app查看具体任务进展接口
     * @return
     */
    @ApiOperation("app查看具体任务进展接口")
    @RequestMapping(value = "taskInfoProgressApp")
    @ResponseBody
    public Page<DcSupBacklog> taskInfoProgressApp(DcSupBacklog dcSupBacklog, HttpServletRequest request, HttpServletResponse response) {
        dcSupBacklog.setPage(new Page<>(request, response));
        dcSupBacklog.setPageSize(5);
        Page<DcSupBacklog> page = dcSupBacklogService.getDetailPage(dcSupBacklog);
        return page;
    }


    /**
     *
     *  app查看任务进反馈接口
     * @return
     */
    @ApiOperation(" app查看任务进反馈接口")
    @RequestMapping(value = "taskInfoActionListApp")
    @ResponseBody
    public Page<DcSupTaskAction> taskInfoActionListApp(DcSupTaskAction action, HttpServletRequest request, HttpServletResponse response) {
        action.setPage(new Page<>(request, response));
        action.setPageSize(5);
        Page<DcSupTaskAction> page = dcSupBacklogService.getActionList(action);
        return page;
    }

    /**
     *
     *  app查看具体任务进反馈接口
     * @return
     */
    @ApiOperation("app查看具体任务进反馈接口")
    @RequestMapping(value = "taskInfoFeedbackListApp")
    @ResponseBody
    public Page<DcSupTaskFeedback> taskInfoFeedbackListApp(DcSupTaskFeedback dcSupTaskFeedback, HttpServletRequest request, HttpServletResponse response) {
        dcSupTaskFeedback.setPage(new Page<>(request, response));
        dcSupTaskFeedback.setPageSize(5);
        Page<DcSupTaskFeedback> page = dcSupTaskFeedbackService.feedbacklistData(dcSupTaskFeedback);
        return page;
    }
}
